import os
from celery import Celery

import celery_tasks

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meiduo_mall.settings')

app = Celery('celery_tasks')

# 放置celery配置的队列
app.config_from_object('celery_tasks.config')

app.autodiscover_tasks(['celery_tasks.sms', 'celery_tasks.email'])